﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PokemonGo.UI.Common
{
    public static class MatchExtends
    {
        /// <summary>
        /// 只取指定位数的 小数
        /// </summary>
        /// <param name="match"></param>
        /// <param name="length"></param>
        /// <returns></returns>
        public static double Round(this double match, int length = 0)
        {
            return Math.Round(match, length);
        }

        public static double Round(this float match, int length = 0)
        {
            return Math.Round(match, length);
        }
    }
}
